﻿@model SmartParking.Web.Models.ReservationListModel
@{
    Layout = "_MobileLayout.cshtml";
    ViewBag.Title = Model.ViewTitle;
    var modelAsJSON = new HtmlString(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Model));
}

@section HeaderScripts {
    <script type='text/javascript'>
        function listAction(id) {
            var url = "@Url.Action(Model.ItemDeleteView)/" + id;
            var result = false;
            $.post(url, id, function () { result = true; }).always(function () { doReload(); });
            return result;
        }
    </script>
}

<div>
    @Html.Partial("List", new SmartParking.Web.Models.ListModel(Model))
</div>